package com.iflytek.speech.util;

import android.util.Log;

public class LogUtil {

    private static int mCount;
    private static boolean isOpen = true;
    private static final String TAG = "SHOU";

    public static void setCount() {
        mCount = 0;
    }

    public static void log(String message) {
        log(0,message);
    }

    public static void log(int i, String message) {
        /*if (i == 2) {
            LocalSqlite.getInstance().WriteLog(2, message);
        }*/
        if (isOpen) {
            mCount++;
            Log.d(TAG, "打印:" + mCount + "....." + message);
        }
    }

    public static void setLog(boolean open) {
        isOpen = open;
    }
}
